function sendLogin(){
	if($("#username").attr("value") == "" || $("#username").attr("value") == null || $("#password").attr("value") == null || $("#password").attr("value") == ""){
		$("#dialog").dialog({
			autoOpen : true,
			width: 400,
			buttons: {
				"OK" : function(){
					$(this).dialog("close");
				}
			},
			modal : true
		});
		
		if($("#dialog").dialog("isOpen") == false){
			$("#dialog").dialog("open");
		}
		
		return true;
	}

	$("#accountLoginForm").submit();
}

function sendForgot(){
	if($("#username").attr("value") == "" || $("#username").attr("value") == null){
		$("#dialog").dialog({
			autoOpen : true,
			width: 400,
			buttons: {
				"OK" : function(){
					$(this).dialog("close");
				}
			},
			modal : true
		});
		
		if($("#dialog").dialog("isOpen") == false){
			$("#dialog").dialog("open");
		}
		
		return true;
	}
	
	$("#accountForgotForm").submit();
}